// 引入连接数据库的模块
require('../db');
const userService = require('../service/userService');
async function testLogin(){
    console.log(await userService.login('lisi','222'));
}
async function testRegister(){
    console.log(await userService.register({
        username:'xiaogang',
        pwd:'8888888',
        created:new Date(),
        level:1
    }))
}
// testLogin();
testRegister();